#pragma once

#include <vector>

class TClientDlg;

class TOptionDlg : public CDialog
{
	DECLARE_DYNAMIC(TOptionDlg)
public:
	TOptionDlg(bool bClient, CWnd* pParent = NULL);
	virtual ~TOptionDlg();
	enum { IDD = IDD_DLG_OPT_CLIENT };

private:
	virtual void DoDataExchange(CDataExchange* pDX);
	DECLARE_MESSAGE_MAP()
	afx_msg void OnBnClickedBtnStart();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	void getIPString();
	bool verifyData();

public:
	bool	m_bClient;
	CString m_sHost;
	CString m_sPort;
	std::vector<unsigned long> m_uips;
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
};
